﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    /// <summary>
    /// 缺陷
    /// </summary>
    [Serializable]
    [EntityMapping(TableName = "Flaw")]
    public class Flaw
    {
        /// <summary>
        /// 缺陷ID
        /// </summary>
        [EntityMapping(IsKey = true, ColumnName = "FlawID")]
        public string FlawID { get; set; }

        /// <summary>
        /// 巡视设备ID
        /// </summary>
        [EntityMapping(ColumnName = "PlanDeviceID")]
        public string PlanDeviceID { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        [EntityMapping(ColumnName = "DeviceID")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 缺陷标题
        /// </summary>
        [EntityMapping(ColumnName = "Title")]
        public string Title { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(ColumnName = "DeviceName")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备大类
        /// </summary>
        [EntityMapping(ColumnName = "DeviceLargeType")]
        public string DeviceLargeType { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        [EntityMapping(ColumnName = "DeviceType")]
        public string DeviceType { get; set; }

        /// <summary>
        /// 缺陷现象
        /// </summary>
        [EntityMapping(ColumnName = "Phenomenon")]
        public string Phenomenon { get; set; }

        /// <summary>
        /// 缺陷类型
        /// </summary>
        [EntityMapping(ColumnName = "Type")]
        public string Type { get; set; }

        /// <summary>
        /// 缺陷级别
        /// </summary>
        [EntityMapping(ColumnName = "Level")]
        public string Level { get; set; }


        /// <summary>
        /// 缺陷来源
        /// </summary>
        [EntityMapping(ColumnName = "Source")]
        public string Source { get; set; }

        /// <summary>
        /// 发现人
        /// </summary>
        [EntityMapping(ColumnName = "DisCoverer")]
        public string DisCoverer { get; set; }

        /// <summary>
        /// 发现时间
        /// </summary>
        [EntityMapping(ColumnName = "DisCoverDateTime")]
        public DateTime? DisCoverDateTime { get; set; }

        /// <summary>
        /// 缺陷部位
        /// </summary>
        [EntityMapping(ColumnName = "Part")]
        public string Part { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [EntityMapping(ColumnName = "Address")]
        public string Address { get; set; }

        /// <summary>
        /// 处理状态：草稿、已处理、已验收、退回
        /// </summary>
        [EntityMapping(ColumnName = "DealState")]
        public string DealState { get; set; }

        /// <summary>
        /// 驳回理由
        /// </summary>
        [EntityMapping(ColumnName = "RejectReason")]
        public string RejectReason { get; set; }

        /// <summary>
        /// 上报状态：未上报、正在上报、已上报
        /// </summary>
        [EntityMapping(ColumnName = "ReportState")]
        public string ReportState { get; set; }

        /// <summary>
        /// 用户真实姓名
        /// </summary>
        [EntityMapping(ColumnName = "RealName")]
        public string RealName { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        [EntityMapping(ColumnName = "UnitName")]
        public string UnitName { get; set; }

        /// <summary>
        /// 所属用户
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }

    }
}
